package com.woniu.zsd.platform.dao;

import com.woniu.zsd.platform.dto.RecycleBinLocationDto;
import com.woniu.zsd.platform.model.RecycleBin;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zhangtao
 * @since 2025年02月18日
 */
@Mapper
public interface RecycleBinMapper extends BaseMapper<RecycleBin> {

    @Select("SELECT station_name FROM recycle_bin WHERE station_id = #{stationId}")
    String selectStationNameByStationId(@Param("stationId") Integer stationId);

    @Select("SELECT station_id, longitude,latitude FROM recycle_bin")
    List<RecycleBinLocationDto> selectRecycleBinByLocation();
}
